package com.library.service.impl;



import com.library.common.core.text.Convert;
import com.library.domain.BoIntegralHistory;
import com.library.mapper.BoIntegralHistoryMapper;
import com.library.service.IBoIntegralHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 积分调整记录 服务层实现
 *
 * @author wanghongjie
 * @date 2020-01-18
 */
@Service
public class BoIntegralHistoryServiceImpl implements IBoIntegralHistoryService {
    @Autowired
    private BoIntegralHistoryMapper boIntegralHistoryMapper;

    /**
     * 查询积分调整记录信息
     *
     * @param id 积分调整记录ID
     * @return 积分调整记录信息
     */
    @Override
    public BoIntegralHistory selectBoIntegralHistoryById(Long id) {
        return boIntegralHistoryMapper.selectBoIntegralHistoryById(id);
    }

    /**
     * 查询积分调整记录列表
     *
     * @param boIntegralHistory 积分调整记录信息
     * @return 积分调整记录集合
     */
    @Override
    public List<BoIntegralHistory> selectBoIntegralHistoryList(BoIntegralHistory boIntegralHistory) {
        return boIntegralHistoryMapper.selectBoIntegralHistoryList(boIntegralHistory);
    }

    /**
     * 新增积分调整记录
     *
     * @param boIntegralHistory 积分调整记录信息
     * @return 结果
     */
    @Override
    public int insertBoIntegralHistory(BoIntegralHistory boIntegralHistory) {
        return boIntegralHistoryMapper.insertBoIntegralHistory(boIntegralHistory);
    }

    /**
     * 修改积分调整记录
     *
     * @param boIntegralHistory 积分调整记录信息
     * @return 结果
     */
    @Override
    public int updateBoIntegralHistory(BoIntegralHistory boIntegralHistory) {
        return boIntegralHistoryMapper.updateBoIntegralHistory(boIntegralHistory);
    }

    /**
     * 删除积分调整记录对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBoIntegralHistoryByIds(Long[] ids) {
        return boIntegralHistoryMapper.deleteBoIntegralHistoryByIds(ids);
    }

}
